﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;
namespace BUS
{
    public class aspnet_UsersBUS
    {
        aspnet_UsersDAO userdao = new aspnet_UsersDAO();
        //load danh sach user
        public DataTable LoadDachSachUser()
        {
            return userdao.LoadDanhSachUser();
        }
        //cap nhat user
        public int CapNhatUser(aspnet_UsersDTO user, aspnet_MembershipDTO member)
        {
            return userdao.CapNhatUser(user, member);
        }
        //kiem tra email trùng
        public int KiemTraEmailTrung(string email)
        {
            return userdao.KiemTraEmailTrung(email);
        }
        //lay userid
        public string LayUserID(string taikhoan)
        {
            return userdao.LayUserID(taikhoan);
        }
        //tim kiem nguoi dung
        public DataTable TimKiemNguoiDung(string username)
        {
            return userdao.TimKiemNguoiDung(username);
        }
    }
}
